Add method getConfigurationValue on BlockPluginTrait

Created on 11 May 2022, over 2 years ago
Updated 16 January 2023, over 1 year ago

Problem/Motivation

Making a custom block in a development site I noticed that there is a method to set configurations value for a block form and you can use it as:
$this->setConfigurationValue('config', $form_state->getValue('config'));
This call sets a value on configurations array but there is no version to get a value from that array.

Proposed resolution

Adds a method on BlockPluginTrait trait like getConfigurationValue to get a value from configurations array.

Feature request
Status

Needs work

Version

10.1

Component
Block 

Last updated 3 days ago

Created by

🇪🇸Spain abarrio

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024