ConfigImportForm::buildForm

public ConfigImportForm::buildForm(array $form, FormStateInterface $form_state) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides FormInterface::buildForm File core/modules/config/src/Form/ConfigImportForm.php, line 52 Class ConfigImportForm Defines the configuration import form. Namespace Drupal\config\For

drupal_install_profile_distribution_version

drupal_install_profile_distribution_version() Loads the installation profile, extracting its defined version. Return value string Distribution version defined in the profile's .info.yml file. Defaults to \Drupal::VERSION if no version is explicitly provided by the installation profile. See also install_profile_info() File core/includes/install.inc, line 123 API functions for installing modules and themes. Code function drupal_install_profile_distribution_version() { // During installation

template_preprocess_breadcrumb

template_preprocess_breadcrumb(&$variables) Prepares variables for breadcrumb templates. Default template: breadcrumb.html.twig. Parameters array $variables: An associative array containing: links: A list of \Drupal\Core\Link objects which should be rendered. File core/includes/theme.inc, line 1693 The theme system, which controls the output of Drupal. Code function template_preprocess_breadcrumb(&$variables) { $variables['breadcrumb'] = array(); /** @var \Drupal\Core\Link $li

RdfMapping::getPreparedFieldMapping

public RdfMapping::getPreparedFieldMapping($field_name) Gets the prepared mapping for a field. The prepared field mapping should be used when outputting data in RDF serializations such as RDFa. In the prepared mapping, the mapping configuration's CURIE arrays are processed into CURIE strings suitable for output. Parameters string $field_name: The name of the field. Return value array The prepared field mapping, or an empty array if there is no mapping. Overrides RdfMappingInterface::getPrepar

PermissionHandler::$moduleHandler

The module handler. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/modules/user/src/PermissionHandler.php, line 57 Class PermissionHandler Provides the available permissions based on yml files. Namespace Drupal\user Code protected $moduleHandler;

language_entity_field_access

language_entity_field_access($operation, FieldDefinitionInterface $field_definition, AccountInterface $account, FieldItemListInterface $items = NULL) Implements hook_entity_field_access() File core/modules/language/language.module, line 431 Add language handling functionality to Drupal. Code function language_entity_field_access($operation, FieldDefinitionInterface $field_definition, AccountInterface $account, FieldItemListInterface $items = NULL) { // Only allow edit access on a langcode f

FieldStorageConfigInterface::setCardinality

public FieldStorageConfigInterface::setCardinality($cardinality) Sets the maximum number of items allowed for the field. Parameters int $cardinality: The cardinality value. Return value $this File core/modules/field/src/FieldStorageConfigInterface.php, line 79 Class FieldStorageConfigInterface Provides an interface defining a field storage entity. Namespace Drupal\field Code public function setCardinality($cardinality);

ModuleHandler::getName

public ModuleHandler::getName($module) Gets the human readable name of a given module. Parameters string $module: The machine name of the module which title should be shown. Return value string Returns the human readable name of the module or the machine name passed in if no matching module is found. Overrides ModuleHandlerInterface::getName File core/lib/Drupal/Core/Extension/ModuleHandler.php, line 719 Class ModuleHandler Class that manages modules in a Drupal installation. Namespace

ColorConfigCacheInvalidator::$cacheTagsInvalidator

The cache tags invalidator. Type: \Drupal\Core\Cache\CacheTagsInvalidatorInterface File core/modules/color/src/EventSubscriber/ColorConfigCacheInvalidator.php, line 20 Class ColorConfigCacheInvalidator A subscriber invalidating cache tags when color config objects are saved. Namespace Drupal\color\EventSubscriber Code protected $cacheTagsInvalidator;

history_node_view_alter

history_node_view_alter(array &$build, EntityInterface $node, EntityViewDisplayInterface $display) Implements hook_ENTITY_TYPE_view_alter() for node entities. File core/modules/history/history.module, line 135 Records which users have read which content. Code function history_node_view_alter(array &$build, EntityInterface $node, EntityViewDisplayInterface $display) { // Update the history table, stating that this user viewed this node. if ($display->getOriginalMode() === 'full'