/** * Set up. * * @return [[@doctodo return_type:setup]] [[@doctodo return_description:setup]] */ public function setup() { $results = [true]; if (!empty($this->primaryModel) && !empty($this->collectorItem->parents)) { $groups = ['top']; foreach ($groups as $groupName) { $group = Group::getBySystemName($groupName, false); if (empty($group)) { continue; } if ($this->inheritParentAccess) { $results[] = $this->objectTypeModel->parentAccess(null, $group); } } } return min($results); }