Token::replace

public Token::replace($text, array $data = array(), array $options = array(), BubbleableMetadata $bubbleable_metadata = NULL) Replaces all tokens in a given string with appropriate values. Parameters string $text: An HTML string containing replaceable tokens. The caller is responsible for calling \Drupal\Component\Utility\Html::escape() in case the $text was plain text. array $data: (optional) An array of keyed objects. For simple replacement scenarios 'node', 'user', and others are common key

PrimitiveInterface

Interface for primitive data. Hierarchy interface \Drupal\Core\TypedData\PrimitiveInterface Related topics Typed Data API API for describing data based on a set of available data types. File core/lib/Drupal/Core/TypedData/PrimitiveInterface.php, line 10 Namespace Drupal\Core\TypedData Members Name Modifiers Type Description PrimitiveInterface::getCastedValue public function Gets the primitive data value casted to the correct PHP type. PrimitiveInterface::getValue p

RfcLogLevel::EMERGENCY

Log message severity -- Emergency: system is unusable. File core/lib/Drupal/Core/Logger/RfcLogLevel.php, line 38 Class RfcLogLevel Defines various logging severity levels. Namespace Drupal\Core\Logger Code const EMERGENCY = 0;

MenuLinkDefaultForm::buildConfigurationForm

public MenuLinkDefaultForm::buildConfigurationForm(array $form, FormStateInterface $form_state) Form constructor. Plugin forms are embedded in other forms. In order to know where the plugin form is located in the parent form, #parents and #array_parents must be known, but these are not available during the initial build phase. In order to have these properties available when building the plugin form's elements, let this method return a form element that has a #process callback and build the res

locale_translate_batch_import

locale_translate_batch_import($file, array $options, &$context) Implements callback_batch_operation(). Perform interface translation import. Parameters object $file: A file object of the gettext file to be imported. The file object must contain a language parameter (other than LanguageInterface::LANGCODE_NOT_SPECIFIED). This is used as the language of the import. array $options: An array with options that can have the following elements: 'langcode': The language code. 'overwrite_options'

FieldConfigBase

Base class for configurable field definitions. Hierarchy class \Drupal\Core\Entity\Entity implements EntityInterface uses RefinableCacheableDependencyTrait, DependencySerializationTraitclass \Drupal\Core\Config\Entity\ConfigEntityBase implements ConfigEntityInterface uses PluginDependencyTraitclass \Drupal\Core\Field\FieldConfigBase implements FieldConfigInterface File core/lib/Drupal/Core/Field/FieldConfigBase.php, line 13 Namespace Drupal\Core\Field Members Name Modifiers Type

UserInterface

Provides an interface defining a user entity. Hierarchy interface \Drupal\Core\Entity\ContentEntityInterface extends \Traversable; interface \Drupal\Core\Entity\EntityChangedInterface; interface \Drupal\Core\Session\AccountInterfaceinterface \Drupal\user\UserInterface Related topics User accounts, permissions, and roles API for user accounts, access checking, roles, and permissions. File core/modules/user/src/UserInterface.php, line 14 Namespace Drupal\user Members Name Modifiers

InfoParserDynamic::parse

public InfoParserDynamic::parse($filename) Parses Drupal module, theme and profile .info.yml files. Info files are NOT for placing arbitrary theme and module-specific settings. Use Config::get() and Config::set()->save() for that. Info files are formatted as YAML. If the 'version' key is set to 'VERSION' in any info file, then the value will be substituted with the current version of Drupal core. Information stored in all .info.yml files: name: The real name of the module for display purpos

SiteSettingsForm::buildForm

public SiteSettingsForm::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/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php, line 62 Class SiteSettingsForm Provides a form to configure and rewrite settings.php. Names

LinkItemInterface

Defines an interface for the link field item. Hierarchy interface \Drupal\Core\TypedData\TypedDataInterfaceinterface \Drupal\Core\TypedData\TraversableTypedDataInterface extends \Traversableinterface \Drupal\Core\TypedData\ComplexDataInterfaceinterface \Drupal\Core\Field\FieldItemInterfaceinterface \Drupal\link\LinkItemInterface File core/modules/link/src/LinkItemInterface.php, line 10 Namespace Drupal\link Members Name Modifiers Type Description ComplexDataInterface::get