Retrieve the default action structure.

@return array
488833
protected function defaultActionStruct()
    {
        return [
            'ident'         => null,
            'priority'      => null,
            'permissions'   => [],
            'condition'     => null,
            'active'        => true,
            'empty'         => false,
            'label'         => null,
            'showLabel'     => true,
            'icon'          => null,
            'url'           => null,
            'name'          => null,
            'value'         => null,
            'target'        => null,
            'isText'        => false,
            'isLink'        => false,
            'isButton'      => true,
            'isHeader'      => false,
            'isSubmittable' => false,
            'isSeparator'   => false,
            'cssClasses'    => null,
            'actionType'    => 'dark',
            'buttonType'    => 'button',
            'splitButton'   => false,
            'hasActions'    => false,
            'actions'       => [],
        ];
    }
410410
protected function getDefaultRowActionInstance()
    {
        // Make the first action that is allowed for the current user
        foreach ($this->getModelInformation()->list->default_action as $data) {

            $permissions = $data->permissions();

            if ( ! empty($permissions) && ! cms_auth()->can($permissions)) {
                continue;
            }

            $instance = $this->getActionStrategyFactory()->make($data->strategy);

            // Initialize the instance with extra information
            $instance->initialize($data, $this->getModelInformation()->modelClass());

            return $instance;
        }

        return false;
    }
1131489
public function getActions()
    {
        $actions = [];
        foreach ($this->data['actions'] as $action) {
            $name = $action['name'];
            $time = isset($action['time'])
                ? $action['time']
                : 0;
            if (isset($actions[$name])) {
                $actions[$name]['count'] += 1;
                $actions[$name]['time'] += $time;
            } else {
                $actions[$name] = ['name' => $name, 'count' => 1, 'time' => $time];
            }
        }

        return array_values($actions);
    }
449475
private function resolveAction(): string
    {
        if (!empty($this->routeParams[1])) {
            $actionName = lcfirst(implode('', array_map('ucfirst', explode('-', $this->routeParams[1]))));

            return $actionName . 'Action';
        }

        return $this->configuration->getDefaultAction() . 'Action';
    }
549371
public function listActions() {
		$parentClassMethods = get_class_methods(get_parent_class($this->Controller));
		$subClassMethods = get_class_methods($this->Controller);
		$classMethods = array_diff($subClassMethods, $parentClassMethods);
		foreach ($classMethods as $key => $classMethod) {
			if (mb_substr($classMethod, 0, 1) === '_') {
				unset($classMethods[$key]);
			}
		}
		return $classMethods;
	}
222966
protected function getDefaultCommands()
	{
		$commands = parent::getDefaultCommands();
		$commands[] = new ShowCommand($this->getComposerAccessor());
		$commands[] = new SelfUpdateCommand($this->getVictorUpdater());

		$this->setDefaultCommand(ShowCommand::NAME);

		return $commands;
	}
1041262
final public function showDefault() {
        $request = Request::instance();
        $t = new Template('.app/system/default', 'systemDefault');
        $t->assign(['action' => $request->src . '::' . $request->controller . '::' . $request->action]);

        return $t->show();
    }
794487
protected function getDefaultHandlers()
    {
        return array(
            '+' => new Handler\StatusResponse(),
            '-' => new Handler\ErrorResponse(),
            ':' => new Handler\IntegerResponse(),
            '$' => new Handler\BulkResponse(),
            '*' => new Handler\MultiBulkResponse(),
        );
    }
679532
public function getCurrentAction()
    {
        if (! isset($this->actions[$this->position])) return null;

        $define = $this->actions[$this->position];
        if ($define['controller']) return $define;

        $controller = $this->getController($define['controller_name']);
        $define['controller'] = $controller;

        $this->actions[$this->position] = $define;

        return $define;
    }
349750
public function getDefault() {
		if( is_object($this->default) ) {
			$this->default = call_user_func_array($this->default->type, (array) $this->default->args);
		} else
		if( defined($this->default) ) {
			return constant($this->default);
		}
		return $this->default;
	}
1140527
public function getSearchDefaults()
    {
        $data = parent::getSearchDefaults();

        if (! isset($data[\MUtil_Model::REQUEST_ID])) {
            $data[\MUtil_Model::REQUEST_ID] = intval($this->_getIdParam());
        }

        return $data;
    }
409561
public function getDefaultConnectionString()
	{
		return array_key_exists($this->_defaultConnection, $this->_connections) ?
			$this->_connections[$this->_defaultConnection] : null;
	}
732682
public function getDefaults()
    {
        global $user;
        return array(
            'post_type'     => $this->getPostType(),
            'post_author'   => (is_object($user)) ? $user->ID : null,
            'post_date'     => current_time('mysql'),
            'post_category' => array(0),
            'post_status'   => 'publish'
        );
    }
979893
public function getSearchDefaults()
    {
        if (! isset($this->defaultSearchData['gr2t_id_organization'])) {
            $orgs = $this->currentUser->getRespondentOrganizations();
            $this->defaultSearchData['gr2t_id_organization'] = array_keys($orgs);
        }
        
        if (!isset($this->defaultSearchData['gtf_id_track'])) {
            $orgs = $this->currentUser->getRespondentOrganizations();
            $tracks = $this->util->getTrackData()->getTracksForOrgs($orgs);
            if (count($tracks) == 1) {
                $this->defaultSearchData['gtf_id_track'] = key($tracks);
            }
        }

        return parent::getSearchDefaults();
    }
800575
public function getActionType() {
		$comment_subtype = $this->comment->getSubtype();

		$object_type = $this->object->getType();
		$object_subtype = $this->object->getSubtype() ? : 'default';
		$keys = [
			"interactions:action:$comment_subtype:on:$object_type:$object_subtype",
			"interactions:action:$comment_subtype:on:$object_type",
			"interactions:action:$comment_subtype",
		];
		foreach ($keys as $key) {
			if (elgg_language_key_exists($key)) {
				return elgg_echo($key, array(), $this->language);
			}
		}
		return elgg_echo('interactions:action:comment', $this->language);
	}
1213289
private function getLinkToTry()
    {
        if (strpos($this->controllerNamespace, Yii::getApp()->controllerNamespace) !== 0) {
            return '';
        }

        $actions = $this->getActionIDs();
        if (in_array('index', $actions, true)) {
            $route = $this->getControllerSubPath() . $this->getControllerID() . '/index';
        } else {
            $route = $this->getControllerSubPath() . $this->getControllerID() . '/' . reset($actions);
        }
        return ' You may ' . Html::a('try it now', Yii::getApp()->getUrlManager()->createUrl($route), ['target' => '_blank', 'rel' => 'noopener noreferrer']) . '.';
    }
1071333
public function getDefaultPages()
    {
        if ($this->defaultPages != null) {
            return $this->defaultPages;
        }
        $this->defaultPages = [];
        /** @noinspection PhpUndefinedFieldInspection */
        if ($this->configFile->defaultPages->getName()) {
            /** @noinspection PhpUndefinedFieldInspection */
            foreach ($this->configFile->defaultPages->page as $page) {
                $title = (string)$page;
                $this->defaultPages[$title]["template"] = (string)$page["template"];
                $this->defaultPages[$title]["alias"] = (string)$page["alias"];
                $this->defaultPages[$title]["id"] = (string)$page["id"];
            }

        }

        return $this->defaultPages;
    }