public function getIdAttribute($name, $attributes)
{
if (array_key_exists('id', $attributes)) {
return $attributes['id'];
}
if (in_array($name, $this->labels)) {
return $name;
}
}
/** * Get the ID attribute for a field name. * * @param string $name * @param array $attributes * @return string * @static */ public static function getIdAttribute($name, $attributes) { return \Collective\Html\FormBuilder::getIdAttribute($name, $attributes); }