diff -u b/core/lib/Drupal/Core/Entity/ContentEntityBase.php b/core/lib/Drupal/Core/Entity/ContentEntityBase.php --- b/core/lib/Drupal/Core/Entity/ContentEntityBase.php +++ b/core/lib/Drupal/Core/Entity/ContentEntityBase.php @@ -174,7 +174,7 @@ * @return \Drupal\Core\TypedData\TypedDataManager */ protected function typedDataManager() { - return \Drupal::typedData(); + return \Drupal::typedDataManager(); } /** diff -u b/core/modules/block/block.module b/core/modules/block/block.module --- b/core/modules/block/block.module +++ b/core/modules/block/block.module @@ -209,7 +209,7 @@ $settings = $block->get('settings'); if ($not_cacheable || in_array($settings['cache'], array(DRUPAL_NO_CACHE, DRUPAL_CACHE_CUSTOM))) { // Non-cached blocks get built immediately. - if ($block->access()) { + if ($block->access('view')) { $build[$key] = entity_view($block, 'block'); } } @@ -223,7 +223,7 @@ $settings = $block->get('settings'); if ($not_cacheable || in_array($settings['cache'], array(DRUPAL_NO_CACHE, DRUPAL_CACHE_CUSTOM))) { // Non-cached blocks get built immediately. - if ($block->access('view')) { + if ($block->access()) { $build[$key] = entity_view($block, 'block'); } } @@ -405,7 +405,7 @@ function _block_get_renderable_block($element) { $block = $element['#block']; // Don't bother to build blocks that aren't accessible. - if ($element['#access'] = $block->access()) { + if ($element['#access'] = $block->access('view')) { $element += entity_view($block, 'block'); } return $element; @@ -419,7 +419,7 @@ function _block_get_renderable_block($element) { $block = $element['#block']; // Don't bother to build blocks that aren't accessible. - if ($element['#access'] = $block->access('view')) { + if ($element['#access'] = $block->access()) { $element += entity_view($block, 'block'); } return $element; only in patch2: unchanged: --- a/core/modules/config/tests/config_test/lib/Drupal/config_test/Entity/ConfigTest.php +++ b/core/modules/config/tests/config_test/lib/Drupal/config_test/Entity/ConfigTest.php @@ -9,6 +9,7 @@ use Drupal\Core\Config\Entity\ConfigEntityBase; use Drupal\config_test\ConfigTestInterface; +use Drupal\Core\Config\Entity\ConfigEntityInterface; /** * Defines the ConfigTest configuration entity. @@ -98,7 +99,7 @@ public function getExportProperties() { /** * Overrides \Drupal\Core\Config\Entity\ConfigEntityBase::sort(). */ - public static function sort($a, $b) { + public static function sort(ConfigEntityInterface $a, ConfigEntityInterface $b) { \Drupal::state()->set('config_entity_sort', TRUE); return parent::sort($a, $b); } only in patch2: unchanged: --- a/core/modules/entity/lib/Drupal/entity/EntityDisplayModeBase.php +++ b/core/modules/entity/lib/Drupal/entity/EntityDisplayModeBase.php @@ -8,6 +8,7 @@ namespace Drupal\entity; use Drupal\Core\Config\Entity\ConfigEntityBase; +use Drupal\Core\Config\Entity\ConfigEntityInterface; /** * Base class for config entity types that hold settings for form and view modes. @@ -67,7 +68,9 @@ /** * {@inheritdoc} */ - public static function sort($a, $b) { + public static function sort(ConfigEntityInterface $a, ConfigEntityInterface $b) { + /** @var \Drupal\entity\EntityDisplayModeInterface $a */ + /** @var \Drupal\entity\EntityDisplayModeInterface $b */ // Sort by the type of entity the view mode is used for. $a_type = $a->getTargetType(); $b_type = $b->getTargetType(); only in patch2: unchanged: --- a/core/modules/system/lib/Drupal/system/Entity/Action.php +++ b/core/modules/system/lib/Drupal/system/Entity/Action.php @@ -8,6 +8,7 @@ namespace Drupal\system\Entity; use Drupal\Core\Config\Entity\ConfigEntityBase; +use Drupal\Core\Config\Entity\ConfigEntityInterface; use Drupal\Core\Entity\EntityStorageControllerInterface; use Drupal\system\ActionConfigEntityInterface; use Drupal\Core\Action\ActionBag; @@ -137,7 +138,9 @@ public function getType() { /** * {@inheritdoc} */ - public static function sort($a, $b) { + public static function sort(ConfigEntityInterface $a, ConfigEntityInterface $b) { + /** @var \Drupal\system\ActionConfigEntityInterface $a */ + /** @var \Drupal\system\ActionConfigEntityInterface $b */ $a_type = $a->getType(); $b_type = $b->getType(); if ($a_type != $b_type) {