DataReferenceBase::getValue

public DataReferenceBase::getValue() Gets the data value. Return value mixed Overrides TypedData::getValue File core/lib/Drupal/Core/TypedData/DataReferenceBase.php, line 36 Class DataReferenceBase Base class for typed data references. Namespace Drupal\Core\TypedData Code public function getValue() { if ($target = $this->getTarget()) { return $target->getValue(); } }

image_entity_presave

image_entity_presave(EntityInterface $entity) Implements hook_entity_presave(). Transforms default image of image field from array into single value at save. File core/modules/image/image.module, line 339 Exposes global functionality for creating image styles. Code function image_entity_presave(EntityInterface $entity) { // Get the default image settings, return if not saving an image field storage // or image field entity. $default_image = []; if (($entity instanceof FieldStorageConf

ThemeManagerInterface::render

public ThemeManagerInterface::render($hook, array $variables) Generates themed output. See the Default theme implementations topic for details. Parameters string $hook: The name of the theme hook to call. array $variables: An associative array of theme variables. Return value string|\Drupal\Component\Render\MarkupInterface The rendered output, or a Markup object. File core/lib/Drupal/Core/Theme/ThemeManagerInterface.php, line 27 Class ThemeManagerInterface Provides a high level access to

FileSystemForm

Configure file system settings for this site. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Form\ConfigFormBase uses ConfigFormBaseTraitclass \Drupal\system\Form\FileSystemForm File core/modules/system/src/Form/FileSystemForm.php, line 18 Namespace Drupal\system\Form Members

UrlHelper::stripDangerousProtocols

public static UrlHelper::stripDangerousProtocols($uri) Strips dangerous protocols (for example, 'javascript:') from a URI. This function must be called for all URIs within user-entered input prior to being output to an HTML attribute value. It is often called as part of \Drupal\Component\Utility\UrlHelper::filterBadProtocol() or \Drupal\Component\Utility\Xss::filter(), but those functions return an HTML-encoded string, so this function can be called independently when the output needs to be a p

RouteProvider::getAllRoutes

public RouteProvider::getAllRoutes() Returns all the routes on the system. Usage of this method is discouraged for performance reasons. If possible, use RouteProviderInterface::getRoutesByNames() or RouteProviderInterface::getRoutesByPattern() instead. Return value \Symfony\Component\Routing\Route[] An iterator of routes keyed by route name. Overrides RouteProviderInterface::getAllRoutes File core/lib/Drupal/Core/Routing/RouteProvider.php, line 375 Class RouteProvider A Route Provider fro

DiffOpCopy::$type

Overrides DiffOp::$type File core/lib/Drupal/Component/Diff/Engine/DiffOpCopy.php, line 11 Class DiffOpCopy @todo document @private @subpackage DifferenceEngine Namespace Drupal\Component\Diff\Engine Code public $type = 'copy';

AjaxBasePageNegotiator::$requestStack

The request stack. Type: \Symfony\Component\HttpFoundation\RequestStack File core/lib/Drupal/Core/Theme/AjaxBasePageNegotiator.php, line 46 Class AjaxBasePageNegotiator Defines a theme negotiator that deals with the active theme on ajax requests. Namespace Drupal\Core\Theme Code protected $requestStack;

EntityStorageInterface::save

public EntityStorageInterface::save(EntityInterface $entity) Saves the entity permanently. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity to save. Return value SAVED_NEW or SAVED_UPDATED is returned depending on the operation performed. Throws \Drupal\Core\Entity\EntityStorageException In case of failures, an exception is thrown. File core/lib/Drupal/Core/Entity/EntityStorageInterface.php, line 143 Class EntityStorageInterface Defines the interface for entity storage

EntityTypeInterface::hasLinkTemplate

public EntityTypeInterface::hasLinkTemplate($key) Indicates if a link template exists for a given key. Parameters string $key: The link type. Return value bool TRUE if the link template exists, FALSE otherwise. File core/lib/Drupal/Core/Entity/EntityTypeInterface.php, line 450 Class EntityTypeInterface Provides an interface for an entity type and its metadata. Namespace Drupal\Core\Entity Code public function hasLinkTemplate($key);