eZ\Publish\Core\Repository\SectionService::isSectionUsed PHP Method

isSectionUsed() public method

This does not check user permissions.
Since: 6.0
public isSectionUsed ( eZ\Publish\API\Repository\Values\Content\Section $section ) : boolean
$section eZ\Publish\API\Repository\Values\Content\Section
return boolean
    public function isSectionUsed(Section $section)
    {
        return $this->sectionHandler->assignmentsCount($section->id) > 0 || $this->sectionHandler->policiesCount($section->id) > 0 || $this->sectionHandler->countRoleAssignmentsUsingSection($section->id) > 0;
    }