PoHeader::setLanguageName

PoHeader::setLanguageName($languageName) Set the human readable language name. Parameters string $languageName: Human readable language name. File core/lib/Drupal/Component/Gettext/PoHeader.php, line 98 Class PoHeader Gettext PO header handler. Namespace Drupal\Component\Gettext Code function setLanguageName($languageName) { $this->_languageName = $languageName; }

CSS_LAYOUT

The default weight for CSS rules that layout a page. File core/includes/common.inc, line 89 Common functions that many Drupal modules will need to reference. Code const CSS_LAYOUT = -100;

Number

Provides a form element for numeric input, with special numeric validation. Properties: #default_value: A valid floating point number. #min: Minimum value. #max: Maximum value. #step: Ensures that the number is an even multiple of step, offset by #min if specified. A #min of 1 and a #step of 2 would allow values of 1, 3, 5, etc. Usage example: $form['quantity'] = array( '#type' => 'number', '#title' => $this->t('Quantity'), ); Plugin annotation @FormElement("number") Hierar

View::$base_field

The name of the base field to use. Type: string File core/modules/views/src/Entity/View.php, line 101 Class View Defines a View configuration entity class. Namespace Drupal\views\Entity Code protected $base_field = 'nid';

FieldStorageAddForm::buildForm

public FieldStorageAddForm::buildForm(array $form, FormStateInterface $form_state, $entity_type_id = NULL, $bundle = NULL) 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/field_ui/src/Form/FieldStorageAddForm.php, line 104 Class FieldStorageAddForm Provides a form f

HeadersCacheContext::getCacheableMetadata

public HeadersCacheContext::getCacheableMetadata($header = NULL) Gets the cacheability metadata for the context based on the parameter value. There are three valid cases for the returned CacheableMetadata object: An empty object means this can be optimized away safely. A max-age of 0 means that this context can never be optimized away. It will never bubble up and cache tags will not be used. Any non-zero max-age and cache tags will bubble up into the cache item if this is optimized away to allo

ForumListingBreadcrumbBuilder::applies

public ForumListingBreadcrumbBuilder::applies(RouteMatchInterface $route_match) Whether this breadcrumb builder should be used to build the breadcrumb. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match. Return value bool TRUE if this builder should be used or FALSE to let other builders decide. Overrides BreadcrumbBuilderInterface::applies File core/modules/forum/src/Breadcrumb/ForumListingBreadcrumbBuilder.php, line 16 Class ForumListingBreadcrumbB

LoggerChannelFactory::$channels

Array of all instantiated logger channels keyed by channel name. Type: \Drupal\Core\Logger\LoggerChannelInterface[] File core/lib/Drupal/Core/Logger/LoggerChannelFactory.php, line 20 Class LoggerChannelFactory Defines a factory for logging channels. Namespace Drupal\Core\Logger Code protected $channels = array();

drupal_theme_rebuild

drupal_theme_rebuild() Forces the system to rebuild the theme registry. This function should be called when modules are added to the system, or when a dynamic system needs to add more theme hooks. File core/includes/theme.inc, line 120 The theme system, which controls the output of Drupal. Code function drupal_theme_rebuild() { \Drupal::service('theme.registry')->reset(); }

ChainedFastBackend::delete

public ChainedFastBackend::delete($cid) Deletes an item from the cache. If the cache item is being deleted because it is no longer "fresh", you may consider using invalidate() instead. This allows callers to retrieve the invalid item by calling get() with $allow_invalid set to TRUE. In some cases an invalid item may be acceptable rather than having to rebuild the cache. Parameters string $cid: The cache ID to delete. Overrides CacheBackendInterface::delete See also \Drupal\Core\Cache\CacheBac