8 class Route extends \Symfony\Component\Routing\Route {
57 $route_parts = explode(
':', $route_name);
59 $from_guid =
function (
$guid) {
63 return $entity->getContainerEntity();
70 switch ($route_parts[0]) {
80 return $from_guid(
$guid);
93 return $from_guid(
$guid);
106 if (!(
bool) $this->getDefault(
'_detect_page_owner')) {
117 return $from_guid(
$guid);
elgg_call(int $flags, Closure $closure)
Calls a callable autowiring the arguments using public DI services and applying logic based on flags...
$params
Saves global plugin settings.
elgg_get_user_by_username(string $username, bool $try_email=false)
Get a user by username.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
const ELGG_IGNORE_ACCESS
elgg_call() flags
resolvePageOwner()
Attemps to resolve page owner from route parameters.
get_entity(int $guid)
Loads and returns an entity object from a guid.
getName()
Get matched route name.
setMatchedParameters(array $parameters)
Set matched parameters.
getMatchedParameters()
Get matched parameters.
$guid
Reset an ElggUpgrade.