public function addFieldDefinition($typeId, $status, FieldDefinition $struct)
{
$this->logger->logCall(__METHOD__, array('type' => $typeId, 'status' => $status, 'struct' => $struct));
$return = $this->persistenceHandler->contentTypeHandler()->addFieldDefinition($typeId, $status, $struct);
if ($status === Type::STATUS_DEFINED) {
$this->cache->clear('contentType', $typeId);
$this->cache->clear('searchableFieldMap');
}
return $return;
}