TypeLinkManagerInterface::getTypeUri

public TypeLinkManagerInterface::getTypeUri($entity_type, $bundle, $context = array()) Gets the URI that corresponds to a bundle. When using hypermedia formats, this URI can be used to indicate which bundle the data represents. Documentation about required and optional fields can also be provided at this URI. Parameters $entity_type: The bundle's entity type. $bundle: The bundle name. array $context: (optional) Optional serializer/normalizer context. Return value string The corresponding URI

RenderCache::set

public RenderCache::set(array &$elements, array $pre_bubbling_elements) Caches the rendered output of a renderable array. May be called by an implementation of \Drupal\Core\Render\RendererInterface while rendering, if the #cache property is set. Parameters array $elements: A renderable array. array $pre_bubbling_elements: A renderable array corresponding to the state (in particular, the cacheability metadata) of $elements prior to the beginning of its rendering process, and therefore befor

ViewExecutable::$showAdminLinks

Should the admin links be shown on the rendered view. Type: bool File core/modules/views/src/ViewExecutable.php, line 415 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code protected $showAdminLinks;

BlockBase

Defines a base block implementation that most blocks plugins will extend. This abstract class provides the generic block configuration form, default block settings, and handling for general user-defined block visibility settings. Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Component\Plugin\ContextAwarePluginBase implements ContextAwarePluginInterfaceclass \Drupal\Core\Plugin\ContextAwarePluginBase implement

ImageToolkitBase::validateConfigurationForm

public ImageToolkitBase::validateConfigurationForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm(). \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform(). Overrides PluginFormInterface::validateConfi

FormBase

Provides a base class for forms. This class exists as a mid-point between dependency injection through ContainerInjectionInterface, and a less-structured use of traits which default to using the \Drupal accessor for service discovery. To properly inject services, override create() and use the setters provided by the traits to inject the needed services. public static function create($container) { $form = new static(); // In this example we only need string translation so we use the // set

template_preprocess_form_element

template_preprocess_form_element(&$variables) Returns HTML for a form element. Prepares variables for form element templates. Default template: form-element.html.twig. In addition to the element itself, the DIV contains a label for the element based on the optional #title_display property, and an optional #description. The optional #title_display property can have these values: before: The label is output before the element. This is the default. The label includes the #title and the requir

BlockLibraryController::listBlocks

public BlockLibraryController::listBlocks(Request $request, $theme) Shows a list of blocks that can be added to a theme's layout. Parameters \Symfony\Component\HttpFoundation\Request $request: The current request. string $theme: Theme key of the block list. Return value array A render array as expected by the renderer. File core/modules/block/src/Controller/BlockLibraryController.php, line 91 Class BlockLibraryController Provides a list of block plugins to be added to the layout. Names

SiteConfigureForm

Provides the site configuration form. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Form\ConfigFormBase uses ConfigFormBaseTraitclass \Drupal\Core\Installer\Form\SiteConfigureForm File core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php, line 16 Namespace Drupal\Core\Inst

CommentLinkBuilder::buildCommentedEntityLinks

public CommentLinkBuilder::buildCommentedEntityLinks(FieldableEntityInterface $entity, array &$context) Builds links for the given entity. Parameters \Drupal\Core\Entity\FieldableEntityInterface $entity: Entity for which the links are being built. array $context: Array of context passed from the entity view builder. Return value array Array of entity links. Overrides CommentLinkBuilderInterface::buildCommentedEntityLinks File core/modules/comment/src/CommentLinkBuilder.php, line 77 Cla