I have pondered this in the past because descriptions are shown in CCTs in _edit
but not _admin
.
From core/assets/metadata/metadata_field/metadata_field_edit_fns.inc
/**
* Simple wrapper for determining whether to print the backend
* or simple edit value interface for this metadata field and then
* call the relevant print method
*
* @param bool $using_template are we using a content container template
* @param bool $from_keyword is this field being printed via a keyword
* @param array $content the content element to be printed
* @return void
*/
public function paintEditInterface($using_template, $from_keyword, $content)
{
if( $this->useSimpleEditFormat($using_template, $from_keyword) ) {
$this->printSimpleEditInterface($content['default'], $content['metadata']);
} else {
$this->printEditInterface($content['default'], $content['metadata'], $content['description'] );
}
}
/**
* Find out whether we should print in simple edit mode or not
*
* @param bool $using_template are we using a content container template
* @param bool $from_keyword is this field being printed via a keyword
* @return bool
*/
private function useSimpleEditFormat($using_template = FALSE, $from_keyword = FALSE)
{
$inBackend = $this->paintInBackend();
if ($inBackend && $using_template) { return TRUE; }
if (!$inBackend && $from_keyword) { return TRUE; }
return FALSE;
}
It was clearly a deliberate distinction between “EditInterface” and “SimpleEditInterface” at one point, almost certainly before CCTs existed. When they were added they somehow got the SImpleEdit version not the Edit, so probably just an accident of history.
I agree that the description should be shown in the uncustomised edit layout of a CCT.