protected function LingotekProfile::isProtectedAttribute in Lingotek Translation 7.7
1 call to LingotekProfile::isProtectedAttribute()
- LingotekProfile::setAttribute in lib/
Drupal/ lingotek/ LingotekProfile.php
File
- lib/
Drupal/ lingotek/ LingotekProfile.php, line 607 - Defines LingotekProfile
Class
- LingotekProfile
- A class wrapper for Lingotek Profiles
Code
protected function isProtectedAttribute($attrib_name) {
$locked_attribs = array(
0 => array(
'auto_upload',
'auto_download',
),
1 => array(
'auto_upload',
'auto_download',
),
);
if (array_key_exists($this
->getId(), $locked_attribs) && in_array($attrib_name, $locked_attribs[$this
->getId()])) {
return TRUE;
}
return FALSE;
}