hook_requirements

hook_requirements($phase) Check installation requirements and do status reporting. This hook has three closely related uses, determined by the $phase argument: Checking installation requirements ($phase == 'install'). Checking update requirements ($phase == 'update'). Status reporting ($phase == 'runtime'). Note that this hook, like all others dealing with installation and updates, must reside in a module_name.install file, or it will not properly abort the installation of the module if a cri

ConfigDependencies::onDependencyRemovalForMethodGranularity

protected ConfigDependencies::onDependencyRemovalForMethodGranularity(RestResourceConfigInterface $rest_config, array $dependencies) Informs the entity that entities it depends on will be deleted. Parameters \Drupal\rest\RestResourceConfigInterface $rest_config: The rest configuration. array $dependencies: An array of dependencies that will be deleted keyed by dependency type. Dependency types are, for example, entity, module and theme. Return value bool TRUE if the entity has been changed as

FieldStorageDefinitionListener::__construct

public FieldStorageDefinitionListener::__construct(EntityTypeManagerInterface $entity_type_manager, EventDispatcherInterface $event_dispatcher, EntityLastInstalledSchemaRepositoryInterface $entity_last_installed_schema_repository, EntityFieldManagerInterface $entity_field_manager) Constructs a new FieldStorageDefinitionListener. Parameters \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager. \Symfony\Component\EventDispatcher\EventDispatcherInterface $e

DiffFormatter::_context

protected DiffFormatter::_context($lines) Overrides DiffFormatter::_context File core/lib/Drupal/Core/Diff/DiffFormatter.php, line 186 Class DiffFormatter Diff formatter which uses returns output that can be rendered to a table. Namespace Drupal\Core\Diff Code protected function _context($lines) { foreach ($lines as $line) { $this->rows[] = array_merge($this->contextLine(Html::escape($line)), $this->contextLine(Html::escape($line))); } }

AdminController::adminPage

public AdminController::adminPage(Request $request, $type = 'new') Presents an administrative comment listing. Parameters \Symfony\Component\HttpFoundation\Request $request: The request of the page. string $type: The type of the overview form ('approval' or 'new') default to 'new'. Return value array Then comment multiple delete confirmation form or the comments overview administration form. File core/modules/comment/src/Controller/AdminController.php, line 53 Class AdminController Retur

Feed::getRefreshRate

public Feed::getRefreshRate() Returns the refresh rate of the feed in seconds. Return value int The refresh rate of the feed in seconds. Overrides FeedInterface::getRefreshRate File core/modules/aggregator/src/Entity/Feed.php, line 241 Class Feed Defines the aggregator feed entity class. Namespace Drupal\aggregator\Entity Code public function getRefreshRate() { return $this->get('refresh')->value; }

PhpassHashedPassword::check

public PhpassHashedPassword::check($password, $hash) Check whether a plain text password matches a hashed password. Parameters string $password: A plain-text password string $hash: A hashed password. Return value bool TRUE if the password is valid, FALSE if not. Overrides PasswordInterface::check File core/lib/Drupal/Core/Password/PhpassHashedPassword.php, line 221 Class PhpassHashedPassword Secure password hashing functions based on the Portable PHP password hashing framework. Namespa

Tour::calculateDependencies

public Tour::calculateDependencies() Calculates dependencies and stores them in the dependency property. Return value $this Overrides ConfigEntityBase::calculateDependencies See also \Drupal\Core\Config\Entity\ConfigDependencyManager File core/modules/tour/src/Entity/Tour.php, line 171 Class Tour Defines the configured tour entity. Namespace Drupal\tour\Entity Code public function calculateDependencies() { parent::calculateDependencies(); foreach ($this->tipsCollection as $in

Drupal::$container

The currently active container object, or NULL if not initialized yet. Type: \Symfony\Component\DependencyInjection\ContainerInterface|null File core/lib/Drupal.php, line 101 Contains \Drupal. Class Drupal Static Service Container wrapper. Code protected static $container;

ContactController::create

public static ContactController::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 servic