mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 09:34:39 +00:00
mvc/model - implement getDescription() in NetworkAliasField. As this field type acts as a single (non-list) type, we need to return the description from here as well as BaseListField's implementation doesn't apply here.
This commit is contained in:
parent
b139e33e4c
commit
697992bb53
@ -103,6 +103,18 @@ class NetworkAliasField extends BaseListField
|
||||
throw new \Exception("Unsupported feature setMultiple()");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
if (isset($this->internalOptionList[(string)$this])) {
|
||||
return $this->internalOptionList[(string)$this];
|
||||
}
|
||||
return (string)$this;
|
||||
}
|
||||
|
||||
/**
|
||||
* retrieve field validators for this field type
|
||||
* @return array
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user