diff --git a/core/lib/Drupal/Component/Plugin/ConfigurablePluginInterface.php b/core/lib/Drupal/Component/Plugin/ConfigurablePluginInterface.php index 9be04bd..5311ae8 100644 --- a/core/lib/Drupal/Component/Plugin/ConfigurablePluginInterface.php +++ b/core/lib/Drupal/Component/Plugin/ConfigurablePluginInterface.php @@ -34,6 +34,6 @@ public function setConfiguration(array $configuration); * @return array * An associative array with the default configuration. */ - public function getDefaultConfiguration(); + public function defaultConfiguration(); } diff --git a/core/lib/Drupal/Core/Action/ConfigurableActionBase.php b/core/lib/Drupal/Core/Action/ConfigurableActionBase.php index bf9d72d..9a398b6 100644 --- a/core/lib/Drupal/Core/Action/ConfigurableActionBase.php +++ b/core/lib/Drupal/Core/Action/ConfigurableActionBase.php @@ -22,13 +22,13 @@ public function __construct(array $configuration, $plugin_id, array $plugin_definition) { parent::__construct($configuration, $plugin_id, $plugin_definition); - $this->configuration += $this->getDefaultConfiguration(); + $this->configuration += $this->defaultConfiguration(); } /** * {@inheritdoc} */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { return array(); } diff --git a/core/modules/action/lib/Drupal/action/Plugin/Action/EmailAction.php b/core/modules/action/lib/Drupal/action/Plugin/Action/EmailAction.php index 68cb623..e00fa39 100644 --- a/core/modules/action/lib/Drupal/action/Plugin/Action/EmailAction.php +++ b/core/modules/action/lib/Drupal/action/Plugin/Action/EmailAction.php @@ -105,7 +105,7 @@ public function execute($entity = NULL) { /** * {@inheritdoc} */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { return array( 'recipient' => '', 'subject' => '', diff --git a/core/modules/action/lib/Drupal/action/Plugin/Action/GotoAction.php b/core/modules/action/lib/Drupal/action/Plugin/Action/GotoAction.php index c1e7d60..d68f06e 100644 --- a/core/modules/action/lib/Drupal/action/Plugin/Action/GotoAction.php +++ b/core/modules/action/lib/Drupal/action/Plugin/Action/GotoAction.php @@ -87,7 +87,7 @@ public function execute($object = NULL) { /** * {@inheritdoc} */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { return array( 'url' => '', ); diff --git a/core/modules/action/lib/Drupal/action/Plugin/Action/MessageAction.php b/core/modules/action/lib/Drupal/action/Plugin/Action/MessageAction.php index 305e6cb..9896b4b 100644 --- a/core/modules/action/lib/Drupal/action/Plugin/Action/MessageAction.php +++ b/core/modules/action/lib/Drupal/action/Plugin/Action/MessageAction.php @@ -61,7 +61,7 @@ public function execute($entity = NULL) { /** * {@inheritdoc} */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { return array( 'message' => '', ); diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/AggregatorPluginSettingsBase.php b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/AggregatorPluginSettingsBase.php index cd01c18..678cfaf 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/AggregatorPluginSettingsBase.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/AggregatorPluginSettingsBase.php @@ -19,7 +19,7 @@ /** * {@inheritdoc} */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { return array(); } diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Block/AggregatorCategoryBlock.php b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Block/AggregatorCategoryBlock.php index cadf47c..1254672 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Block/AggregatorCategoryBlock.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Block/AggregatorCategoryBlock.php @@ -25,7 +25,7 @@ class AggregatorCategoryBlock extends BlockBase { /** * {@inheritdoc} */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { // By default, the block will contain 10 feed items. return array( 'block_count' => 10, diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Block/AggregatorFeedBlock.php b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Block/AggregatorFeedBlock.php index 2f2576c..d61584e 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Block/AggregatorFeedBlock.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Plugin/Block/AggregatorFeedBlock.php @@ -25,7 +25,7 @@ class AggregatorFeedBlock extends BlockBase { /** * {@inheritdoc} */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { // By default, the block will contain 10 feed items. return array( 'block_count' => 10, diff --git a/core/modules/block/custom_block/lib/Drupal/custom_block/Plugin/Block/CustomBlockBlock.php b/core/modules/block/custom_block/lib/Drupal/custom_block/Plugin/Block/CustomBlockBlock.php index e47d894..3731471 100644 --- a/core/modules/block/custom_block/lib/Drupal/custom_block/Plugin/Block/CustomBlockBlock.php +++ b/core/modules/block/custom_block/lib/Drupal/custom_block/Plugin/Block/CustomBlockBlock.php @@ -77,7 +77,7 @@ public static function create(ContainerInterface $container, array $configuratio /** * {@inheritdoc} */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { return array( 'status' => TRUE, 'info' => '', diff --git a/core/modules/block/lib/Drupal/block/BlockBase.php b/core/modules/block/lib/Drupal/block/BlockBase.php index d978949..7888b7b 100644 --- a/core/modules/block/lib/Drupal/block/BlockBase.php +++ b/core/modules/block/lib/Drupal/block/BlockBase.php @@ -27,7 +27,7 @@ public function __construct(array $configuration, $plugin_id, array $plugin_definition) { parent::__construct($configuration, $plugin_id, $plugin_definition); - $this->configuration += $this->getDefaultConfiguration() + array( + $this->configuration += $this->defaultConfiguration() + array( 'label' => '', 'module' => $plugin_definition['module'], 'label_display' => BlockInterface::BLOCK_LABEL_VISIBLE, @@ -52,7 +52,7 @@ public function setConfiguration(array $configuration) { /** * {@inheritdoc} */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { return array(); } diff --git a/core/modules/block/lib/Drupal/block/Plugin/views/display/Block.php b/core/modules/block/lib/Drupal/block/Plugin/views/display/Block.php index 3809da7..6166cb5 100644 --- a/core/modules/block/lib/Drupal/block/Plugin/views/display/Block.php +++ b/core/modules/block/lib/Drupal/block/Plugin/views/display/Block.php @@ -69,7 +69,7 @@ protected function defineOptions() { * An array of block-specific settings to override the defaults provided in * \Drupal\views\Plugin\Block\ViewsBlock::settings(). * - * @see \Drupal\views\Plugin\Block\ViewsBlock::getDefaultConfiguration() + * @see \Drupal\views\Plugin\Block\ViewsBlock::defaultConfiguration() */ public function blockSettings(array $settings) { $settings['items_per_page'] = 'none'; diff --git a/core/modules/block/tests/modules/block_test/lib/Drupal/block_test/Plugin/Block/TestBlockInstantiation.php b/core/modules/block/tests/modules/block_test/lib/Drupal/block_test/Plugin/Block/TestBlockInstantiation.php index 354aaec..1d5e947 100644 --- a/core/modules/block/tests/modules/block_test/lib/Drupal/block_test/Plugin/Block/TestBlockInstantiation.php +++ b/core/modules/block/tests/modules/block_test/lib/Drupal/block_test/Plugin/Block/TestBlockInstantiation.php @@ -24,7 +24,7 @@ class TestBlockInstantiation extends BlockBase { /** * {@inheritdoc} */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { return array( 'display_message' => 'no message set', ); diff --git a/core/modules/block/tests/modules/block_test/lib/Drupal/block_test/Plugin/Block/TestCacheBlock.php b/core/modules/block/tests/modules/block_test/lib/Drupal/block_test/Plugin/Block/TestCacheBlock.php index ac5e05e..c26780a 100644 --- a/core/modules/block/tests/modules/block_test/lib/Drupal/block_test/Plugin/Block/TestCacheBlock.php +++ b/core/modules/block/tests/modules/block_test/lib/Drupal/block_test/Plugin/Block/TestCacheBlock.php @@ -26,7 +26,7 @@ class TestCacheBlock extends BlockBase { * * Sets a different caching strategy for testing purposes. */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { return array( 'cache' => DRUPAL_CACHE_PER_ROLE, ); diff --git a/core/modules/block/tests/modules/block_test/lib/Drupal/block_test/Plugin/Block/TestXSSTitleBlock.php b/core/modules/block/tests/modules/block_test/lib/Drupal/block_test/Plugin/Block/TestXSSTitleBlock.php index daa0d22..cca6794 100644 --- a/core/modules/block/tests/modules/block_test/lib/Drupal/block_test/Plugin/Block/TestXSSTitleBlock.php +++ b/core/modules/block/tests/modules/block_test/lib/Drupal/block_test/Plugin/Block/TestXSSTitleBlock.php @@ -24,7 +24,7 @@ class TestXSSTitleBlock extends TestCacheBlock { * * Sets a different caching strategy for testing purposes. */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { return array( 'cache' => DRUPAL_NO_CACHE, ); diff --git a/core/modules/book/lib/Drupal/book/Plugin/Block/BookNavigationBlock.php b/core/modules/book/lib/Drupal/book/Plugin/Block/BookNavigationBlock.php index a4182f0..d32ea7b 100644 --- a/core/modules/book/lib/Drupal/book/Plugin/Block/BookNavigationBlock.php +++ b/core/modules/book/lib/Drupal/book/Plugin/Block/BookNavigationBlock.php @@ -24,7 +24,7 @@ class BookNavigationBlock extends BlockBase { /** * {@inheritdoc} */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { return array( 'cache' => DRUPAL_CACHE_PER_PAGE | DRUPAL_CACHE_PER_ROLE, 'block_mode' => "all pages", diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/Action/UnpublishByKeywordComment.php b/core/modules/comment/lib/Drupal/comment/Plugin/Action/UnpublishByKeywordComment.php index 96534c8..b7d735e 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/Action/UnpublishByKeywordComment.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/Action/UnpublishByKeywordComment.php @@ -40,7 +40,7 @@ public function execute($comment = NULL) { /** * {@inheritdoc} */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { return array( 'keywords' => array(), ); diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/Block/RecentCommentsBlock.php b/core/modules/comment/lib/Drupal/comment/Plugin/Block/RecentCommentsBlock.php index 72e9fba..10358ae 100644 --- a/core/modules/comment/lib/Drupal/comment/Plugin/Block/RecentCommentsBlock.php +++ b/core/modules/comment/lib/Drupal/comment/Plugin/Block/RecentCommentsBlock.php @@ -24,7 +24,7 @@ class RecentCommentsBlock extends BlockBase { /** * {@inheritdoc} */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { return array( 'block_count' => 10, ); diff --git a/core/modules/filter/lib/Drupal/filter/Plugin/FilterBase.php b/core/modules/filter/lib/Drupal/filter/Plugin/FilterBase.php index 8afe680..dede3d3 100644 --- a/core/modules/filter/lib/Drupal/filter/Plugin/FilterBase.php +++ b/core/modules/filter/lib/Drupal/filter/Plugin/FilterBase.php @@ -109,7 +109,7 @@ public function getConfiguration() { /** * {@inheritdoc} */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { return array(); } diff --git a/core/modules/forum/lib/Drupal/forum/Plugin/Block/ForumBlockBase.php b/core/modules/forum/lib/Drupal/forum/Plugin/Block/ForumBlockBase.php index f5e7c69..0f4fff4 100644 --- a/core/modules/forum/lib/Drupal/forum/Plugin/Block/ForumBlockBase.php +++ b/core/modules/forum/lib/Drupal/forum/Plugin/Block/ForumBlockBase.php @@ -17,7 +17,7 @@ /** * {@inheritdoc} */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { return array( 'cache' => DRUPAL_CACHE_CUSTOM, 'properties' => array( diff --git a/core/modules/image/lib/Drupal/image/ImageEffectBase.php b/core/modules/image/lib/Drupal/image/ImageEffectBase.php index 158874d..546a53f 100644 --- a/core/modules/image/lib/Drupal/image/ImageEffectBase.php +++ b/core/modules/image/lib/Drupal/image/ImageEffectBase.php @@ -103,7 +103,7 @@ public function setConfiguration(array $configuration) { 'uuid' => '', 'weight' => '', ); - $this->configuration = $configuration['data'] + $this->getDefaultConfiguration(); + $this->configuration = $configuration['data'] + $this->defaultConfiguration(); $this->uuid = $configuration['uuid']; $this->weight = $configuration['weight']; return $this; @@ -112,7 +112,7 @@ public function setConfiguration(array $configuration) { /** * {@inheritdoc} */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { return array(); } diff --git a/core/modules/image/lib/Drupal/image/Plugin/ImageEffect/CropImageEffect.php b/core/modules/image/lib/Drupal/image/Plugin/ImageEffect/CropImageEffect.php index fcd831b..39f58f3 100644 --- a/core/modules/image/lib/Drupal/image/Plugin/ImageEffect/CropImageEffect.php +++ b/core/modules/image/lib/Drupal/image/Plugin/ImageEffect/CropImageEffect.php @@ -49,8 +49,8 @@ public function getSummary() { /** * {@inheritdoc} */ - public function getDefaultConfiguration() { - return parent::getDefaultConfiguration() + array( + public function defaultConfiguration() { + return parent::defaultConfiguration() + array( 'anchor' => 'center-center', ); } diff --git a/core/modules/image/lib/Drupal/image/Plugin/ImageEffect/ResizeImageEffect.php b/core/modules/image/lib/Drupal/image/Plugin/ImageEffect/ResizeImageEffect.php index fdbcabd..27d5538 100644 --- a/core/modules/image/lib/Drupal/image/Plugin/ImageEffect/ResizeImageEffect.php +++ b/core/modules/image/lib/Drupal/image/Plugin/ImageEffect/ResizeImageEffect.php @@ -57,7 +57,7 @@ public function getSummary() { /** * {@inheritdoc} */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { return array( 'width' => NULL, 'height' => NULL, diff --git a/core/modules/image/lib/Drupal/image/Plugin/ImageEffect/RotateImageEffect.php b/core/modules/image/lib/Drupal/image/Plugin/ImageEffect/RotateImageEffect.php index b6d571c..23c0560 100644 --- a/core/modules/image/lib/Drupal/image/Plugin/ImageEffect/RotateImageEffect.php +++ b/core/modules/image/lib/Drupal/image/Plugin/ImageEffect/RotateImageEffect.php @@ -85,7 +85,7 @@ public function getSummary() { /** * {@inheritdoc} */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { return array( 'degrees' => 0, 'bgcolor' => NULL, diff --git a/core/modules/image/lib/Drupal/image/Plugin/ImageEffect/ScaleImageEffect.php b/core/modules/image/lib/Drupal/image/Plugin/ImageEffect/ScaleImageEffect.php index 984d99b..87b0dac 100644 --- a/core/modules/image/lib/Drupal/image/Plugin/ImageEffect/ScaleImageEffect.php +++ b/core/modules/image/lib/Drupal/image/Plugin/ImageEffect/ScaleImageEffect.php @@ -56,8 +56,8 @@ public function getSummary() { /** * {@inheritdoc} */ - public function getDefaultConfiguration() { - return parent::getDefaultConfiguration() + array( + public function defaultConfiguration() { + return parent::defaultConfiguration() + array( 'upscale' => FALSE, ); } diff --git a/core/modules/node/lib/Drupal/node/Plugin/Action/AssignOwnerNode.php b/core/modules/node/lib/Drupal/node/Plugin/Action/AssignOwnerNode.php index 6f49e37..dc3a0bd 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/Action/AssignOwnerNode.php +++ b/core/modules/node/lib/Drupal/node/Plugin/Action/AssignOwnerNode.php @@ -70,7 +70,7 @@ public function execute($entity = NULL) { /** * {@inheritdoc} */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { return array( 'owner_uid' => '', ); diff --git a/core/modules/node/lib/Drupal/node/Plugin/Action/UnpublishByKeywordNode.php b/core/modules/node/lib/Drupal/node/Plugin/Action/UnpublishByKeywordNode.php index bc01b7b..d227c30 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/Action/UnpublishByKeywordNode.php +++ b/core/modules/node/lib/Drupal/node/Plugin/Action/UnpublishByKeywordNode.php @@ -39,7 +39,7 @@ public function execute($node = NULL) { /** * {@inheritdoc} */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { return array( 'keywords' => array(), ); diff --git a/core/modules/node/lib/Drupal/node/Plugin/Block/RecentContentBlock.php b/core/modules/node/lib/Drupal/node/Plugin/Block/RecentContentBlock.php index ea0cab1..feb93b2 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/Block/RecentContentBlock.php +++ b/core/modules/node/lib/Drupal/node/Plugin/Block/RecentContentBlock.php @@ -24,7 +24,7 @@ class RecentContentBlock extends BlockBase { /** * {@inheritdoc} */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { return array( 'block_count' => 10, ); diff --git a/core/modules/node/lib/Drupal/node/Plugin/Block/SyndicateBlock.php b/core/modules/node/lib/Drupal/node/Plugin/Block/SyndicateBlock.php index 3acf4f7..0f45043 100644 --- a/core/modules/node/lib/Drupal/node/Plugin/Block/SyndicateBlock.php +++ b/core/modules/node/lib/Drupal/node/Plugin/Block/SyndicateBlock.php @@ -24,7 +24,7 @@ class SyndicateBlock extends BlockBase { /** * {@inheritdoc} */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { return array( 'block_count' => 10, ); diff --git a/core/modules/statistics/lib/Drupal/statistics/Plugin/Block/StatisticsPopularBlock.php b/core/modules/statistics/lib/Drupal/statistics/Plugin/Block/StatisticsPopularBlock.php index 45a64c3..1955668 100644 --- a/core/modules/statistics/lib/Drupal/statistics/Plugin/Block/StatisticsPopularBlock.php +++ b/core/modules/statistics/lib/Drupal/statistics/Plugin/Block/StatisticsPopularBlock.php @@ -45,7 +45,7 @@ class StatisticsPopularBlock extends BlockBase { /** * {@inheritdoc} */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { return array( 'top_day_num' => 0, 'top_all_num' => 0, diff --git a/core/modules/user/lib/Drupal/user/Plugin/Action/ChangeUserRoleBase.php b/core/modules/user/lib/Drupal/user/Plugin/Action/ChangeUserRoleBase.php index 0d7afa6..ef8613f 100644 --- a/core/modules/user/lib/Drupal/user/Plugin/Action/ChangeUserRoleBase.php +++ b/core/modules/user/lib/Drupal/user/Plugin/Action/ChangeUserRoleBase.php @@ -17,7 +17,7 @@ /** * {@inheritdoc} */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { return array( 'rid' => '', ); diff --git a/core/modules/user/lib/Drupal/user/Plugin/Block/UserNewBlock.php b/core/modules/user/lib/Drupal/user/Plugin/Block/UserNewBlock.php index 6d8bb4e..71b28e3 100644 --- a/core/modules/user/lib/Drupal/user/Plugin/Block/UserNewBlock.php +++ b/core/modules/user/lib/Drupal/user/Plugin/Block/UserNewBlock.php @@ -24,7 +24,7 @@ class UserNewBlock extends BlockBase { /** * {@inheritdoc} */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { return array( 'properties' => array( 'administrative' => TRUE diff --git a/core/modules/user/lib/Drupal/user/Plugin/Block/UserOnlineBlock.php b/core/modules/user/lib/Drupal/user/Plugin/Block/UserOnlineBlock.php index 882dd50..7370b7a 100644 --- a/core/modules/user/lib/Drupal/user/Plugin/Block/UserOnlineBlock.php +++ b/core/modules/user/lib/Drupal/user/Plugin/Block/UserOnlineBlock.php @@ -27,7 +27,7 @@ class UserOnlineBlock extends BlockBase { /** * {@inheritdoc} */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { return array( 'properties' => array( 'administrative' => TRUE diff --git a/core/modules/views/lib/Drupal/views/Plugin/Block/ViewsBlock.php b/core/modules/views/lib/Drupal/views/Plugin/Block/ViewsBlock.php index 8eb50ee..32f861b 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/Block/ViewsBlock.php +++ b/core/modules/views/lib/Drupal/views/Plugin/Block/ViewsBlock.php @@ -45,7 +45,7 @@ public function build() { /** * {@inheritdoc} */ - public function getDefaultConfiguration() { + public function defaultConfiguration() { $settings = array(); if ($this->displaySet) {