Commit f141e8f7 authored by Marco Villegas's avatar Marco Villegas
Browse files

Follow core ConfigurablePluginInterface change to use defaultConfiguration() instead of settings().

Following core's c435ef8d2b63f338b14546a5dab0b509ceb4917c, see #2062573.
parent 10845677
Loading
Loading
Loading
Loading
+2 −2
Changes for block_example/lib/Drupal/block_example/Plugin/Block/ExampleConfigurableTextBlock.php: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -23,9 +23,9 @@
class ExampleConfigurableTextBlock extends BlockBase {

  /**
   * Overrides \Drupal\block\BlockBase::settings().
   * Overrides \Drupal\block\BlockBase::defaultConfiguration().
   */
  public function settings() {
  public function defaultConfiguration() {
    return array(
      'block_example_string' => t('A default value. This block was created at %time', array('%time' => date('c'))),
      'cache' => DRUPAL_CACHE_PER_ROLE,