PoItem::formatItem

private PoItem::formatItem() Format the POItem as a string. File core/lib/Drupal/Component/Gettext/PoItem.php, line 205 Class PoItem PoItem handles one translation. Namespace Drupal\Component\Gettext Code private function formatItem() { $output = ''; // Format string context. if (!empty($this->_context)) { $output .= 'msgctxt ' . $this->formatString($this->_context); } // Format translation. if ($this->_plural) { $output .= $this->formatPlural();

EntityTypeManager::getAccessControlHandler

public EntityTypeManager::getAccessControlHandler($entity_type) Creates a new access control handler instance. Parameters string $entity_type: The entity type for this access control handler. Return value \Drupal\Core\Entity\EntityAccessControlHandlerInterface. A access control handler instance. Overrides EntityTypeManagerInterface::getAccessControlHandler File core/lib/Drupal/Core/Entity/EntityTypeManager.php, line 224 Class EntityTypeManager Manages entity type plugin definitions. Na

ConfigEntityBase::urlInfo

public ConfigEntityBase::urlInfo($rel = 'edit-form', array $options = []) Gets the URL object for the entity. Parameters string $rel: The link relationship type, for example: canonical or edit-form. array $options: See \Drupal\Core\Routing\UrlGeneratorInterface::generateFromRoute() for the available options. Return value \Drupal\Core\Url The URL object. Overrides Entity::urlInfo Deprecated in Drupal 8.0.0, intended to be removed in Drupal 9.0.0 Use \Drupal\Core\Entity\EntityInterface::toUrl

EntityFormDisplay::processForm

public EntityFormDisplay::processForm($element, FormStateInterface $form_state, $form) Process callback: assigns weights and hides extra fields. See also \Drupal\Core\Entity\Entity\EntityFormDisplay::buildForm() File core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php, line 196 Class EntityFormDisplay Configuration entity that contains widget options for all components of a entity form in a given form mode. Namespace Drupal\Core\Entity\Entity Code public function processForm($ele

NodeAccessControlHandler::$grantStorage

The node grant storage. Type: \Drupal\node\NodeGrantDatabaseStorageInterface File core/modules/node/src/NodeAccessControlHandler.php, line 28 Class NodeAccessControlHandler Defines the access control handler for the node entity type. Namespace Drupal\node Code protected $grantStorage;

ViewsData::$moderationInformation

The moderation information. Type: \Drupal\content_moderation\ModerationInformationInterface File core/modules/content_moderation/src/ViewsData.php, line 28 Class ViewsData Provides the content_moderation views integration. Namespace Drupal\content_moderation Code protected $moderationInformation;

InlineFormErrorsServiceProvider::alter

public InlineFormErrorsServiceProvider::alter(ContainerBuilder $container) Modifies existing service definitions. Parameters ContainerBuilder $container: The ContainerBuilder whose service definitions can be altered. Overrides ServiceProviderBase::alter File core/modules/inline_form_errors/src/InlineFormErrorsServiceProvider.php, line 17 Class InlineFormErrorsServiceProvider Overrides the form_error_handler service to enable inline form errors. Namespace Drupal\inline_form_errors Code

InsertTrait::$insertFields

An array of fields on which to insert. Type: array File core/lib/Drupal/Core/Database/Query/InsertTrait.php, line 24 Class InsertTrait Provides common functionality for INSERT and UPSERT queries. Namespace Drupal\Core\Database\Query Code protected $insertFields = array();

FormatterBase::getFieldSetting

protected FormatterBase::getFieldSetting($setting_name) Returns the value of a field setting. Parameters string $setting_name: The setting name. Return value mixed The setting value. File core/lib/Drupal/Core/Field/FormatterBase.php, line 149 Class FormatterBase Base class for 'Field formatter' plugin implementations. Namespace Drupal\Core\Field Code protected function getFieldSetting($setting_name) { return $this->fieldDefinition->getSetting($setting_name); }

user_element_info_alter

user_element_info_alter(array &$types) Implements hook_element_info_alter(). File core/modules/user/user.module, line 1227 Enables the user registration and login system. Code function user_element_info_alter(array &$types) { if (isset($types['password_confirm'])) { $types['password_confirm']['#process'][] = 'user_form_process_password_confirm'; } }