MenuLinkDefault

Provides a default implementation for menu link plugins. Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Menu\MenuLinkBase implements MenuLinkInterfaceclass \Drupal\Core\Menu\MenuLinkDefault implements ContainerFactoryPluginInterface File core/lib/Drupal/Core/Menu/MenuLinkDefault.php, line 11 Namespace D

Xss::getAdminTagList

public static Xss::getAdminTagList() Gets the list of HTML tags allowed by Xss::filterAdmin(). Return value array The list of HTML tags allowed by filterAdmin(). File core/lib/Drupal/Component/Utility/Xss.php, line 335 Class Xss Provides helper to filter for cross-site scripting. Namespace Drupal\Component\Utility Code public static function getAdminTagList() { return static::$adminTags; }

SqlContentEntityStorageSchema::$storage

The storage object for the given entity type. Type: \Drupal\Core\Entity\Sql\SqlContentEntityStorage File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 64 Class SqlContentEntityStorageSchema Defines a schema handler that supports revisionable, translatable entities. Namespace Drupal\Core\Entity\Sql Code protected $storage;

ToStringTrait::_die

protected ToStringTrait::_die() For test purposes, wrap die() in an overridable method. File core/lib/Drupal/Component/Utility/ToStringTrait.php, line 31 Class ToStringTrait Wraps __toString in a trait to avoid some fatals. Namespace Drupal\Component\Utility Code protected function _die() { die(); }

system_form_user_register_form_alter

system_form_user_register_form_alter(&$form, FormStateInterface $form_state) Implements hook_form_FORM_ID_alter() for \Drupal\user\RegisterForm. File core/modules/system/system.module, line 769 Configuration system that lets administrators modify the workings of the site. Code function system_form_user_register_form_alter(&$form, FormStateInterface $form_state) { $config = \Drupal::config('system.date'); if ($config->get('timezone.user.configurable') && $config->get(

ConfigEntityBase::$trustedData

Trust supplied data and not use configuration schema on save. Type: bool File core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 107 Class ConfigEntityBase Defines a base configuration entity class. Namespace Drupal\Core\Config\Entity Code protected $trustedData = FALSE;

LinkGeneratorInterface

Defines an interface for generating links from route names and parameters. Hierarchy interface \Drupal\Core\Utility\LinkGeneratorInterface File core/lib/Drupal/Core/Utility/LinkGeneratorInterface.php, line 11 Namespace Drupal\Core\Utility Members Name Modifiers Type Description LinkGeneratorInterface::generate public function Renders a link to a URL. LinkGeneratorInterface::generateFromLink public function Renders a link from a link object.

StringTranslationTrait

Wrapper methods for \Drupal\Core\StringTranslation\TranslationInterface. Using this trait will add t() and formatPlural() methods to the class. These must be used for every translatable string, similar to how procedural code must use the global functions t() and \Drupal::translation()->formatPlural(). This allows string extractor tools to find translatable strings. If the class is capable of injecting services from the container, it should inject the 'string_translation' service and assign i

DatabaseBackend::catchException

protected DatabaseBackend::catchException(\Exception $e, $table_name = NULL) Act on an exception when cache might be stale. If the table does not yet exist, that's fine, but if the table exists and yet the query failed, then the cache is stale and the exception needs to propagate. Parameters $e: The exception. string|null $table_name: The table name. Defaults to $this->bin. Throws \Exception File core/lib/Drupal/Core/Cache/DatabaseBackend.php, line 388 Class DatabaseBackend Defines a

file_upload_max_size

file_upload_max_size() Determines the maximum file upload size by querying the PHP settings. Return value A file size limit in bytes based on the PHP upload_max_filesize and post_max_size Related topics File interface Common file handling functions. File core/includes/file.inc, line 1084 API for handling file uploads and server file management. Code function file_upload_max_size() { static $max_size = -1; if ($max_size < 0) { // Start with post_max_size. $max_size = Bytes::