Same name in other branches
  1. 8.x-1.x src/EntityCloneSettingsManager.php \Drupal\entity_clone\EntityCloneSettingsManager::getHiddenValue()

Get the checkbox hidden value for a given entity type.

Paramètres

string $entity_type_id: The entity type ID.

Return value

bool The hidden value.

Fichier

src/EntityCloneSettingsManager.php, line 141

Classe

EntityCloneSettingsManager
Manage entity clone configuration.

Namespace

Drupal\entity_clone

Code

public function getHiddenValue($entity_type_id) {
    $form_settings = $this->config
        ->get('form_settings');
    if (isset($form_settings[$entity_type_id]['hidden'])) {
        return $form_settings[$entity_type_id]['hidden'];
    }
    return FALSE;
}