system_authorized_run

system_authorized_run($callback, $file, $arguments = array(), $page_title = NULL) Setup and invoke an operation using authorize.php. See also system_authorized_init() Related topics Authorized operations Functions to run operations with elevated privileges via authorize.php. File core/modules/system/system.module, line 476 Configuration system that lets administrators modify the workings of the site. Code function system_authorized_run($callback, $file, $arguments = array(), $page_title =

system_authorized_init

system_authorized_init($callback, $file, $arguments = array(), $page_title = NULL) Setup a given callback to run via authorize.php with elevated privileges. To use authorize.php, certain variables must be stashed into $_SESSION. This function sets up all the necessary $_SESSION variables. The calling function should then redirect to authorize.php, using the full path returned by system_authorized_get_url(). That initiates the workflow that will eventually lead to the callback being invoked. The

system_admin_compact_mode

system_admin_compact_mode() Determines whether the current user is in compact mode. Compact mode shows certain administration pages with less description text, such as the configuration page and the permissions page. Whether the user is in compact mode is determined by a cookie, which is set for the user by \Drupal\system\Controller\SystemController::compactPage(). If the user does not have the cookie, the default value is given by the configuration variable 'system.site.admin_compact_mode', wh

system_authorized_batch_processing_url

system_authorized_batch_processing_url(array $options = array()) Returns the URL for the authorize.php script when it is processing a batch. Parameters array $options: Optional array of options to set on the \Drupal\Core\Url object. Return value \Drupal\Core\Url Related topics Authorized operations Functions to run operations with elevated privileges via authorize.php. File core/modules/system/system.module, line 466 Configuration system that lets administrators modify the workings of the s

SystemRequirements::phpVersionWithPdoDisallowMultipleStatements

public static SystemRequirements::phpVersionWithPdoDisallowMultipleStatements($phpversion) Determines whether the passed in PHP version disallows multiple statements. Parameters string $phpversion: Return value bool File core/modules/system/src/SystemRequirements.php, line 17 Class SystemRequirements Class for helper methods used for the system requirements. Namespace Drupal\system Code public static function phpVersionWithPdoDisallowMultipleStatements($phpversion) { // PDO::MYSQL_

SystemRequirements

Class for helper methods used for the system requirements. Hierarchy class \Drupal\system\SystemRequirements File core/modules/system/src/SystemRequirements.php, line 8 Namespace Drupal\system Members Name Modifiers Type Description SystemRequirements::phpVersionWithPdoDisallowMultipleStatements public static function Determines whether the passed in PHP version disallows multiple statements.

system_authorized_batch_process

system_authorized_batch_process() Use authorize.php to run batch_process(). See also batch_process() Related topics Authorized operations Functions to run operations with elevated privileges via authorize.php. File core/modules/system/system.module, line 486 Configuration system that lets administrators modify the workings of the site. Code function system_authorized_batch_process() { $finish_url = system_authorized_get_url(); $process_url = system_authorized_batch_processing_url();

SystemMenuOffCanvasForm::submitConfigurationForm

public SystemMenuOffCanvasForm::submitConfigurationForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm(). \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform(). Overrides PluginFormInterface::submitCo

SystemMenuOffCanvasForm::create

public static SystemMenuOffCanvasForm::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The

SystemMenuOffCanvasForm::validateConfigurationForm

public SystemMenuOffCanvasForm::validateConfigurationForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm(). \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform(). Overrides PluginFormBase::validateCon