You are here

function easychart_form_field_config_edit_form_alter in Easychart 8.3

Implements hook_form_FORM_ID_alter().

Parameters

array $form: The form

\Drupal\Core\Form\FormStateInterface $form_state: The form state.

File

./easychart.module, line 21
Easychart module file.

Code

function easychart_form_field_config_edit_form_alter(&$form, FormStateInterface $form_state) {
  if ($form_state
    ->getFormObject()
    ->getEntity()
    ->getType() == 'easychart') {
    $form['default_value']['#access'] = FALSE;
  }
}