ConfigEntityBase::link

public ConfigEntityBase::link($text = NULL, $rel = 'edit-form', array $options = []) Deprecated way of generating a link to the entity. See toLink(). Parameters string|null $text: (optional) The link text for the anchor tag as a translated string. If NULL, it will use the entity's label. Defaults to NULL. string $rel: (optional) The link relationship type. Defaults to 'canonical'. array $options: See \Drupal\Core\Routing\UrlGeneratorInterface::generateFromRoute() for the available options. Ret

DependencyTrait

Provides a trait for managing an object's dependencies. Hierarchy trait \Drupal\Core\Entity\DependencyTrait File core/lib/Drupal/Core/Entity/DependencyTrait.php, line 8 Namespace Drupal\Core\Entity Members Name Modifiers Type Description DependencyTrait::$dependencies protected property The object's dependencies. DependencyTrait::addDependencies protected function Adds multiple dependencies. DependencyTrait::addDependency protected function Adds a depende

ImageStyleAddForm::submitForm

public ImageStyleAddForm::submitForm(array &$form, FormStateInterface $form_state) This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state can be updated, this way the subsequently invoked handlers can retrieve a regular entity object to act on. Generally this method should not be overridden unless

ContentLanguageSettingsInterface::setDefaultLangcode

public ContentLanguageSettingsInterface::setDefaultLangcode($default_langcode) Sets the default language code. Parameters string $default_langcode: The default language code. Return value $this File core/modules/language/src/ContentLanguageSettingsInterface.php, line 44 Class ContentLanguageSettingsInterface Provides an interface defining language settings for content entities. Namespace Drupal\language Code public function setDefaultLangcode($default_langcode);

Entity::url

public Entity::url($rel = 'canonical', $options = array()) Gets the public URL for this 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 string The URL for this entity. Overrides EntityInterface::url Deprecated in Drupal 8.0.0, intended to be removed in Drupal 9.0.0 Please use toUrl() instead. See also \Drupal\Core\Enti

MemoryBackend::garbageCollection

public MemoryBackend::garbageCollection() Performs garbage collection on a cache bin. The backend may choose to delete expired or invalidated items. Overrides CacheBackendInterface::garbageCollection File core/lib/Drupal/Core/Cache/MemoryBackend.php, line 189 Class MemoryBackend Defines a memory cache implementation. Namespace Drupal\Core\Cache Code public function garbageCollection() { }

FieldConfigListBuilder::buildHeader

public FieldConfigListBuilder::buildHeader() Builds the header row for the entity listing. Return value array A render array structure of header strings. Overrides EntityListBuilder::buildHeader See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/field_ui/src/FieldConfigListBuilder.php, line 103 Class FieldConfigListBuilder Provides lists of field config entities. Namespace Drupal\field_ui Code public function buildHeader() { $header = array( 'label' =>

LanguageConverter

Converts parameters for upcasting entity IDs to full objects. Hierarchy class \Drupal\language\LanguageConverter implements ParamConverterInterface File core/modules/language/src/LanguageConverter.php, line 12 Namespace Drupal\language Members Name Modifiers Type Description LanguageConverter::$languageManager protected property The language manager. LanguageConverter::applies public function Determines if the converter applies to a specific route and variable. O

hook_js_settings_alter

hook_js_settings_alter(array &$settings, \Drupal\Core\Asset\AttachedAssetsInterface $assets) Perform necessary alterations to the JavaScript settings (drupalSettings). Parameters array &$settings: An array of all JavaScript settings (drupalSettings) being presented on the page. \Drupal\Core\Asset\AttachedAssetsInterface $assets: The assets attached to the current response. See also \Drupal\Core\Asset\AssetResolver Related topics Hooks Define functions that alter the behavior of Drupal

filter_get_roles_by_format

filter_get_roles_by_format(FilterFormatInterface $format) Retrieves a list of roles that are allowed to use a given text format. Parameters \Drupal\filter\FilterFormatInterface $format: An object representing the text format. Return value array An array of role names, keyed by role ID. File core/modules/filter/filter.module, line 148 Framework for handling the filtering of content. Code function filter_get_roles_by_format(FilterFormatInterface $format) { // Handle the fallback format upfr