RouteSubscriber::getSubscribedEvents

public static RouteSubscriber::getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)) arra

drupal_set_time_limit

drupal_set_time_limit($time_limit) Attempts to set the PHP maximum execution time. This function is a wrapper around the PHP function set_time_limit(). When called, set_time_limit() restarts the timeout counter from zero. In other words, if the timeout is the default 30 seconds, and 25 seconds into script execution a call such as set_time_limit(20) is made, the script will run for a total of 45 seconds before timing out. If the current time limit is not unlimited it is possible to decrease the

ConfigSchemaAlterException

Exception for when hook_config_schema_info_alter() adds or removes schema. Hierarchy class \Drupal\Core\Config\Schema\ConfigSchemaAlterException extends \RuntimeException File core/lib/Drupal/Core/Config/Schema/ConfigSchemaAlterException.php, line 8 Namespace Drupal\Core\Config\Schema Members

FieldStorageAddForm::$queryFactory

The query factory to create entity queries. Type: \Drupal\Core\Entity\Query\QueryFactory File core/modules/field_ui/src/Form/FieldStorageAddForm.php, line 54 Class FieldStorageAddForm Provides a form for the "field storage" add page. Namespace Drupal\field_ui\Form Code public $queryFactory;

Editor::$image_upload

The structured array of image upload settings. Type: array File core/modules/editor/src/Entity/Editor.php, line 59 Class Editor Defines the configured text editor entity. Namespace Drupal\editor\Entity Code protected $image_upload = array();

ConstraintManager::create

public ConstraintManager::create($name, $options) Creates a validation constraint. Parameters string $name: The name or plugin id of the constraint. mixed $options: The options to pass to the constraint class. Required and supported options depend on the constraint class. Return value \Symfony\Component\Validator\Constraint A validation constraint plugin. File core/lib/Drupal/Core/Validation/ConstraintManager.php, line 72 Class ConstraintManager Constraint plugin manager. Namespace Dr

TranslatorInterface

Interface for objects capable of string translation. Hierarchy interface \Drupal\Core\StringTranslation\Translator\TranslatorInterface File core/lib/Drupal/Core/StringTranslation/Translator/TranslatorInterface.php, line 8 Namespace Drupal\Core\StringTranslation\Translator Members Name Modifiers Type Description TranslatorInterface::getStringTranslation public function Retrieves English string to given language. TranslatorInterface::reset public function Resets tr

AccessDeniedSubscriber::$account

The current user. Type: \Drupal\Core\Session\AccountInterface File core/modules/user/src/EventSubscriber/AccessDeniedSubscriber.php, line 31 Class AccessDeniedSubscriber Redirects users when access is denied. Namespace Drupal\user\EventSubscriber Code protected $account;

PermissionsHashGeneratorInterface::generate

public PermissionsHashGeneratorInterface::generate(AccountInterface $account) Generates a hash that uniquely identifies a user's permissions. Parameters \Drupal\Core\Session\AccountInterface $account: The user account for which to get the permissions hash. Return value string A permissions hash. File core/lib/Drupal/Core/Session/PermissionsHashGeneratorInterface.php, line 19 Class PermissionsHashGeneratorInterface Defines the user permissions hash generator interface. Namespace Drupal

Percentage::format

public static Percentage::format($total, $current) Formats the percent completion for a batch set. Parameters int $total: The total number of operations. int $current: The number of the current operation. This may be a floating point number rather than an integer in the case of a multi-step operation that is not yet complete; in that case, the fractional part of $current represents the fraction of the operation that has been completed. Return value string The properly formatted percentage, as