ConfigEntityMapper::getBaseRouteParameters

public ConfigEntityMapper::getBaseRouteParameters() Returns the route parameters for the base route the mapper is attached to. Return value array Overrides ConfigNamesMapper::getBaseRouteParameters File core/modules/config_translation/src/ConfigEntityMapper.php, line 167 Class ConfigEntityMapper Configuration mapper for configuration entities. Namespace Drupal\config_translation Code public function getBaseRouteParameters() { return array($this->entityType => $this->entity-

ThemeNegotiatorInterface

Defines an interface for classes which determine the active theme. To set the active theme, create a new service tagged with 'theme_negotiator' (see the theme.negotiator.admin_theme service in user.services.yml for an example). Your service class needs to implement this interface. If you are setting a theme which is closely tied to the functionality of a particular page or set of pages (such that the page might not function correctly if a different theme is used), make sure to set the priority

forum.module

Provides discussion forums. File core/modules/forum/forum.module Functions Name Description forum_comment_delete Implements hook_ENTITY_TYPE_delete() for comment entities. forum_comment_insert Implements hook_ENTITY_TYPE_insert() for comment entities. forum_comment_update Implements hook_ENTITY_TYPE_update() for comment entities. forum_entity_bundle_field_info_alter Implements hook_entity_bundle_field_info_alter(). forum_entity_bundle_info_alter Implements hook_entity_

ContentEntityType::$group

The group machine name. Overrides EntityType::$group File core/lib/Drupal/Core/Entity/Annotation/ContentEntityType.php, line 29 Class ContentEntityType Defines a content entity type annotation object. Namespace Drupal\Core\Entity\Annotation Code public $group = 'content';

BlockInterface::setRegion

public BlockInterface::setRegion($region) Sets the region this block is placed in. Parameters string $region: The region to place this block in. Return value $this File core/modules/block/src/BlockInterface.php, line 109 Class BlockInterface Provides an interface defining a block entity. Namespace Drupal\block Code public function setRegion($region);

FeedViewBuilder::createInstance

public static FeedViewBuilder::createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) Instantiates a new instance of this entity handler. This is a factory method that returns a new instance of this object. The factory should pass any needed dependencies into the constructor of this object, but not the container itself. Every call to this method must return a new instance of this object; that is, it may not implement a singleton. Parameters \Symfony\Component\Dependenc

ImageStyleDownloadController::$logger

A logger instance. Type: \Psr\Log\LoggerInterface File core/modules/image/src/Controller/ImageStyleDownloadController.php, line 41 Class ImageStyleDownloadController Defines a controller to serve image styles. Namespace Drupal\image\Controller Code protected $logger;

hook_countries_alter

hook_countries_alter(&$countries) Alter the default country list. Parameters $countries: The associative array of countries keyed by two-letter country code. See also \Drupal\Core\Locale\CountryManager::getList() Related topics Hooks Define functions that alter the behavior of Drupal core. File core/core.api.php, line 2116 Documentation landing page and topics, plus core library hooks. Code function hook_countries_alter(&$countries) { // Elbonia is now independent, so add it to

ImageStyle::getReplacementID

public ImageStyle::getReplacementID() Returns the replacement ID. Return value string|null The replacement image style ID or NULL if no replacement has been selected. Overrides ImageStyleInterface::getReplacementID Deprecated in Drupal 8.0.x, will be removed before Drupal 9.0.x. Use \Drupal\image\ImageStyleStorageInterface::getReplacementId() instead. See also \Drupal\image\ImageStyleStorageInterface::getReplacementId() File core/modules/image/src/Entity/ImageStyle.php, line 380 Class

views_element_validate_tags

views_element_validate_tags($element, FormStateInterface $form_state) Validation callback for query tags. File core/modules/views/views.module, line 798 Primarily Drupal hooks and global API functions to manipulate views. Code function views_element_validate_tags($element, FormStateInterface $form_state) { $values = array_map('trim', explode(',', $element['#value'])); foreach ($values as $value) { if (preg_match("/[^a-z_]/", $value)) { $form_state->setError($element, t('The q