LanguageInterface::LANGCODE_SYSTEM

Special system language code (only applicable to UI language). Refers to the language used in Drupal and module/theme source code. Drupal uses the built-in text for English by default, but if configured to allow translation/customization of English, we need to differentiate between the built-in language and the English translation. File core/lib/Drupal/Core/Language/LanguageInterface.php, line 18 Class LanguageInterface Defines a language. Namespace Drupal\Core\Language Code const LANG

ViewExecutable::$element

A render array container to store render related information. For example you can alter the array and attach some asset library or JS settings via the #attached key. This is the required way to add custom CSS or JS. Type: array See also \Drupal\Core\Render\AttachmentsResponseProcessorInterface::processAttachments() File core/modules/views/src/ViewExecutable.php, line 395 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public $element = [ '#attached' =&

Tasks::$pdoDriver

The name of the PDO driver this database type requires. Type: string Overrides Tasks::$pdoDriver File core/lib/Drupal/Core/Database/Driver/pgsql/Install/Tasks.php, line 18 Class Tasks Specifies installation tasks for PostgreSQL databases. Namespace Drupal\Core\Database\Driver\pgsql\Install Code protected $pdoDriver = 'pgsql';

TypedConfigInterface::isEmpty

public TypedConfigInterface::isEmpty() Determines whether the data structure is empty. Return value bool TRUE if the data structure is empty, FALSE otherwise. File core/lib/Drupal/Core/Config/Schema/TypedConfigInterface.php, line 25 Class TypedConfigInterface Interface for a typed configuration object that contains multiple elements. Namespace Drupal\Core\Config\Schema Code public function isEmpty();

ConfirmFormBase::buildForm

public ConfirmFormBase::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/Form/ConfirmFormBase.php, line 41 Class ConfirmFormBase Provides an generic base class for a confirmation form. Namespace Drupal

FieldStorageConfig::preSaveNew

protected FieldStorageConfig::preSaveNew(EntityStorageInterface $storage) Prepares saving a new field definition. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage. Throws \Drupal\Core\Field\FieldException If the field definition is invalid. File core/modules/field/src/Entity/FieldStorageConfig.php, line 304 Class FieldStorageConfig Defines the Field storage configuration entity. Namespace Drupal\field\Entity Code protected function preSaveNew(EntityS

BanIpManager::unbanIp

public BanIpManager::unbanIp($id) Unbans an IP address. Parameters string $id: The IP address to unban. Overrides BanIpManagerInterface::unbanIp File core/modules/ban/src/BanIpManager.php, line 56 Class BanIpManager Ban IP manager. Namespace Drupal\ban Code public function unbanIp($id) { $this->connection->delete('ban_ip') ->condition('ip', $id) ->execute(); }

FormState::$rebuild_info

Similar to self::$build_info, but pertaining to \Drupal\Core\Form\FormBuilderInterface::rebuildForm(). This property is uncacheable. Type: array File core/lib/Drupal/Core/Form/FormState.php, line 79 Class FormState Stores information about the state of a form. Namespace Drupal\Core\Form Code protected $rebuild_info = array();

Drupal::hasService

public static Drupal::hasService($id) Indicates if a service is defined in the container. Parameters string $id: The ID of the service to check. Return value bool TRUE if the specified service exists, FALSE otherwise. File core/lib/Drupal.php, line 170 Contains \Drupal. Class Drupal Static Service Container wrapper. Code public static function hasService($id) { // Check hasContainer() first in order to always return a Boolean. return static::hasContainer() && static::getCont

FieldStorageConfig::getBundles

public FieldStorageConfig::getBundles() Returns the list of bundles where the field storage has fields. Return value array An array of bundle names. Overrides FieldStorageConfigInterface::getBundles File core/modules/field/src/Entity/FieldStorageConfig.php, line 495 Class FieldStorageConfig Defines the Field storage configuration entity. Namespace Drupal\field\Entity Code public function getBundles() { if (!$this->isDeleted()) { $map = \Drupal::entityManager()->getFieldMap