You are here

public function SocialBlockBase::invalidConfigurationValidator in Social Feed 8

Validation handler for social blocks with invalid configuration.

File

src/Plugin/Block/SocialBlockBase.php, line 68

Class

SocialBlockBase
Abstract base class SocialBlockBase.

Namespace

Drupal\socialfeed\Plugin\Block

Code

public function invalidConfigurationValidator($element, FormStateInterface $form_state) {
  $form_state
    ->setErrorByName('configuration_warning', $this
    ->t('This block cannot be placed.'));
}