FieldModuleUninstallValidator

Validates module uninstall readiness based on defined storage definitions. @todo Remove this once we support field purging for base fields. See https://www.drupal.org/node/2282119. Hierarchy class \Drupal\Core\Field\FieldModuleUninstallValidator implements ModuleUninstallValidatorInterface uses StringTranslationTrait File core/lib/Drupal/Core/Field/FieldModuleUninstallValidator.php, line 17 Namespace Drupal\Core\Field Members Name Modifiers Type Description FieldModuleUninstal

comment_preprocess_block

comment_preprocess_block(&$variables) Implements hook_preprocess_HOOK() for block templates. File core/modules/comment/comment.module, line 605 Enables users to comment on published content. Code function comment_preprocess_block(&$variables) { if ($variables['configuration']['provider'] == 'comment') { $variables['attributes']['role'] = 'navigation'; } }

SetDialogTitleCommand

Defines an AJAX command that sets jQuery UI dialog properties. Hierarchy class \Drupal\Core\Ajax\SetDialogOptionCommand implements CommandInterfaceclass \Drupal\Core\Ajax\SetDialogTitleCommand Related topics Ajax API Overview for Drupal's Ajax API. File core/lib/Drupal/Core/Ajax/SetDialogTitleCommand.php, line 10 Namespace Drupal\Core\Ajax Members Name Modifiers Type Description SetDialogOptionCommand::$optionName protected property A jQuery UI dialog option name. S

AccessResultForbidden::__construct

public AccessResultForbidden::__construct($reason = NULL) Constructs a new AccessResultForbidden instance. Parameters null|string $reason: (optional) a message to provide details about this access result File core/lib/Drupal/Core/Access/AccessResultForbidden.php, line 23 Class AccessResultForbidden Value object indicating a forbidden access result, with cacheability metadata. Namespace Drupal\Core\Access Code public function __construct($reason = NULL) { $this->reason = $reason;

Entity::__construct

public Entity::__construct(array $values, $entity_type) Constructs an Entity object. Parameters array $values: An array of values to set, keyed by property name. If the entity type has bundles, the bundle key has to be specified. string $entity_type: The type of the entity to create. File core/lib/Drupal/Core/Entity/Entity.php, line 58 Class Entity Defines a base entity class. Namespace Drupal\Core\Entity Code public function __construct(array $values, $entity_type) { $this->enti

FilterFormatFormBase::create

public static FilterFormatFormBase::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 ser

ActionAddForm::__construct

public ActionAddForm::__construct(EntityStorageInterface $storage, ActionManager $action_manager) Constructs a new ActionAddForm. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The action storage. \Drupal\Core\Action\ActionManager $action_manager: The action plugin manager. Overrides ActionFormBase::__construct File core/modules/action/src/ActionAddForm.php, line 31 Class ActionAddForm Provides a form for action add forms. Namespace Drupal\action Code public function

EntityFieldManager::$moduleHandler

The module handler. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/lib/Drupal/Core/Entity/EntityFieldManager.php, line 103 Class EntityFieldManager Manages the discovery of entity fields. Namespace Drupal\Core\Entity Code protected $moduleHandler;

SiteConfigureForm::$countryManager

The country manager. Type: \Drupal\Core\Locale\CountryManagerInterface File core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php, line 51 Class SiteConfigureForm Provides the site configuration form. Namespace Drupal\Core\Installer\Form Code protected $countryManager;

RestResourceConfig::getAuthenticationProvidersForMethodGranularity

public RestResourceConfig::getAuthenticationProvidersForMethodGranularity($method) Retrieves a list of supported authentication providers. Parameters string $method: The request method e.g GET or POST. Return value string[] A list of supported authentication provider IDs. File core/modules/rest/src/Entity/RestResourceConfig.php, line 161 Class RestResourceConfig Defines a RestResourceConfig configuration entity class. Namespace Drupal\rest\Entity Code public function getAuthenticatio