Unicode::truncate

public static Unicode::truncate($string, $max_length, $wordsafe = FALSE, $add_ellipsis = FALSE, $min_wordsafe_length = 1) Truncates a UTF-8-encoded string safely to a number of characters. Parameters string $string: The string to truncate. int $max_length: An upper limit on the returned string length, including trailing ellipsis if $add_ellipsis is TRUE. bool $wordsafe: If TRUE, attempt to truncate on a word boundary. Word boundaries are spaces, punctuation, and Unicode characters used as word

ViewExecutable::render

public ViewExecutable::render($display_id = NULL) Renders this view for a certain display. Note: You should better use just the preview function if you want to render a view. Parameters string $display_id: The machine name of the display, which should be rendered. Return value array|null A renderable array containing the view output or NULL if the build process failed. File core/modules/views/src/ViewExecutable.php, line 1440 Class ViewExecutable Represents a view as a whole. Namespace

EntityTypeManagerInterface::createHandlerInstance

public EntityTypeManagerInterface::createHandlerInstance($class, EntityTypeInterface $definition = NULL) Creates new handler instance. Usually \Drupal\Core\Entity\EntityManagerInterface::getHandler() is preferred since that method has additional checking that the class exists and has static caches. Parameters mixed $class: The handler class to instantiate. \Drupal\Core\Entity\EntityTypeInterface $definition: The entity type definition. Return value object A handler instance. File core/lib/Dru

EntityFieldManager::$typedDataManager

The typed data manager. Type: \Drupal\Core\TypedData\TypedDataManagerInterface File core/lib/Drupal/Core/Entity/EntityFieldManager.php, line 82 Class EntityFieldManager Manages the discovery of entity fields. Namespace Drupal\Core\Entity Code protected $typedDataManager;

DiffOpChange

@todo document @private @subpackage DifferenceEngine Hierarchy class \Drupal\Component\Diff\Engine\DiffOpclass \Drupal\Component\Diff\Engine\DiffOpChange File core/lib/Drupal/Component/Diff/Engine/DiffOpChange.php, line 10 Namespace Drupal\Component\Diff\Engine Members Name Modifiers Type Description DiffOp::$closing public property DiffOp::$orig public property DiffOp::nclosing public function DiffOp::norig public function DiffOpChange::$type

DefaultMenuLinkTreeManipulators::generateIndexAndSort

public DefaultMenuLinkTreeManipulators::generateIndexAndSort(array $tree) Generates a unique index and sorts by it. Parameters \Drupal\Core\Menu\MenuLinkTreeElement[] $tree: The menu link tree to manipulate. Return value \Drupal\Core\Menu\MenuLinkTreeElement[] The manipulated menu link tree. File core/lib/Drupal/Core/Menu/DefaultMenuLinkTreeManipulators.php, line 226 Class DefaultMenuLinkTreeManipulators Provides a couple of menu link tree manipulators. Namespace Drupal\Core\Menu Cod

BlockListBuilder::$request

The current request. Type: \Symfony\Component\HttpFoundation\Request File core/modules/block/src/BlockListBuilder.php, line 38 Class BlockListBuilder Defines a class to build a listing of block entities. Namespace Drupal\block Code protected $request;

Container::getInfo

public Container::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides ElementInterface::getInfo File core/lib/Drupal/Core/Render/Element/Container.php, line 46 Class Container Provides a render element that wraps child elements in a container. Namespace Drupal\Core\Re

BlockListBuilder::validateForm

public BlockListBuilder::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::validateForm File core/modules/block/src/BlockListBuilder.php, line 350 Class BlockListBuilder Defines a class to build a listing of block entities. Namespace Drupal\block Code public fun

ViewExecutable::$base_database

Allow to override the used database which is used for this query. Type: bool File core/modules/views/src/ViewExecutable.php, line 253 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code public $base_database = NULL;