public static function Element::properties in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Render/Element.php \Drupal\Core\Render\Element::properties()
Gets properties of a structured array element (keys beginning with '#').
Parameters
array $element: An element array to return properties for.
Return value
array An array of property keys for the element.
4 calls to Element::properties()
- ElementTest::testProperties in core/
tests/ Drupal/ Tests/ Core/ Render/ ElementTest.php - Tests the properties() method.
- RenderCache::getCacheableRenderArray in core/
lib/ Drupal/ Core/ Render/ RenderCache.php - Gets a cacheable render array for a render array and its rendered output.
- RendererTest::testRenderCacheProperties in core/
tests/ Drupal/ Tests/ Core/ Render/ RendererTest.php - Tests that #cache_properties are properly handled.
- TextFormat::processFormat in core/
modules/ filter/ src/ Element/ TextFormat.php - Expands an element into a base element with text format selector attached.
File
- core/
lib/ Drupal/ Core/ Render/ Element.php, line 44 - Contains \Drupal\Core\Render\Element.
Class
- Element
- Provides helper methods for Drupal render elements.
Namespace
Drupal\Core\RenderCode
public static function properties(array $element) {
return array_filter(array_keys($element), 'static::property');
}